package services

import (
	"go_ruoyi/utils"
	"net/http"

	"github.com/gin-gonic/gin"
)

// 验证码服务
func CaptchaService(c *gin.Context) {
	uid, base64 := utils.CreateCodePhoto()
	c.JSON(http.StatusOK, gin.H{
		"code": 200,
		"img":  base64,
		"uuid": uid,
		"msg":  "验证码获取成功",
	})

}
